package com.education.user.controller.app;

import com.github.pagehelper.PageHelper;
import com.education.common.core.BaseController;
import com.education.common.utils.ApiReturnObject;
import com.education.user.pojo.SysInfoMsg;
import com.education.user.service.SysInfoMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 消息 信息操作处理
 *
 * @author d
 * @date 2020-03-24
 */
@RestController
@RequestMapping("/app/sysInfoMsg")
public class AppSysInfoMsgController extends BaseController {

    @Autowired
    private SysInfoMsgService sysInfoMsgService;

    @GetMapping("/findByCount")
    public Integer findByCount(Integer userId){
        return sysInfoMsgService.findCount(userId);
    }

}